﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;

public abstract class ColliderEditor : Editor
{
    protected static Color mSelectColor = Color.green;

    protected static Color mNoSelectColor = new Color(0, 0.5f, 0, 1);

    [DrawGizmo(GizmoType.NonSelected)]
    static void NoSelectGizmo(MyCollider colider, GizmoType gizmoType)
    {
        colider.Draw(mNoSelectColor);
    }

    [DrawGizmo(GizmoType.Selected)]
    static void SelectGizmo(MyCollider colider, GizmoType gizmoType)
    {
        colider.Draw(mSelectColor);
    }
}
